package org.jeecg.modules.wx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 用户和微信绑定关系
 * @Author: cheng
 * @Date:   2022-09-13
 * @Version: V1.0
 */
@Data
@TableName("mt_union_wx")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="mt_union_wx对象", description="用户和微信绑定关系")
public class MtUnionWx implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**微信用户唯一标识*/
	@Excel(name = "微信用户唯一标识", width = 15)
    @ApiModelProperty(value = "微信用户唯一标识")
    private String openId;
	/**系统用户*/
	@Excel(name = "系统用户/客户", width = 15)
    @ApiModelProperty(value = "系统用户/客户")
    private String userId;
	/**微信昵称*/
	@Excel(name = "微信昵称", width = 15)
    @ApiModelProperty(value = "微信昵称")
    private String weiXinName;
	/**商户名称*/
	@Excel(name = "商户名称", width = 15)
    @ApiModelProperty(value = "商户名称")
    private String unionName;
    /**机构编码*/
    @Excel(name = "机构编码", width = 15)
    @ApiModelProperty(value = "机构编码")
    private String orgCode;
    /**类型：1.工程师 2.服务商 3.服务站 4.客户*/
    @Excel(name = "类型", width = 15)
    @ApiModelProperty(value = "类型 1.工程师 2.服务商 3.服务站 4.客户")
    private String unionType;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
}
